Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

164
Vistas
How to specify label and description fields in CKAN "datastore_create" API request

Im creating a datastore using CKAN API, but CKAN is ignoring the label and description properties:

const fields = [
  {
    id: "id_unique",
    type: "text",
    label: "label of id_unique", // CKAN ignoring this property
    description: "description of id_unique", // CKAN ignoring this property
  },
  {
    id: "latitude",
    type: "text",
    label: "label of latitude", // CKAN ignoring this property
    description: "description of latitude", // CKAN ignoring this property
  },
  {
    id: "longitude",
    type: "text",
    label: "label of longitude", // CKAN ignoring this property
    description: "description of longitude", // CKAN ignoring this property
  },
]

await clientAction('datastore_create', {
  package_id,
  resource_id,
  force,
  fields,
  records,
  primary_key,
})

Result:

enter image description here

How can I send the "label" and "description" properties?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Found out the solution. It's specified in a info field:

const fields = [
  {
    id: "id_unique",
    type: "text",
    info: {
      notes: "description of id_unique",
      label: "label of id_unique",
    }
  },
  {
    id: "latitude",
    type: "text",
    info: {
      notes: "description of latitude",
      label: "label of latitude",
    }
  },
  {
    id: "longitude",
    type: "text",
    info: {
      notes: "description of longitude",
      label: "label of longitude",
    }
  },
]
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda